package com.demo.pojo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author WuLiangHang
 */
public class Order {
    private Long id;
    private Long customerId;
    private Long addressId;
    private Long createTime;
    private BigDecimal totalPrice;
    private Address address;
    private List<OrderItem> orderItems;

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", customerId=" + customerId +
                ", addressId=" + addressId +
                ", createTime=" + createTime +
                ", totalPrice=" + totalPrice +
                ", address=" + address +
                ", orderItems=" + orderItems +
                '}';
    }

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }

    public Order() {
    }

    public Order(Long id, Long customerId, Long addressId, Long createTime) {
        this.id = id;
        this.customerId = customerId;
        this.addressId = addressId;
        this.createTime = createTime;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
}
